class CartProductModel {
  CartProductModel({
      this.name, 
      this.type, 
      this.price, 
      this.count, 
      this.image,});

  CartProductModel.fromJson(dynamic json) {
    name = json['name'];
    type = json['type'];
    price = json['price'];
    count = json['count'];
    image = json['image'];
  }
  String? name;
  String? type;
  String? price;
  num? count;
  String? image;
CartProductModel copyWith({  String? name,
  String? type,
  String? price,
  num? count,
  String? image,
}) => CartProductModel(  name: name ?? this.name,
  type: type ?? this.type,
  price: price ?? this.price,
  count: count ?? this.count,
  image: image ?? this.image,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['name'] = name;
    map['type'] = type;
    map['price'] = price;
    map['count'] = count;
    map['image'] = image;
    return map;
  }

}